package com.example.aerospacemanagementsystem.service.personnelService.impl;


import com.example.aerospacemanagementsystem.entity.personnel.Partymember;
import com.example.aerospacemanagementsystem.entity.personnel.Retired;
import com.example.aerospacemanagementsystem.mapper.personnelMapper.PartymemberMapper;
import com.example.aerospacemanagementsystem.mapper.personnelMapper.RetiredMapper;
import com.example.aerospacemanagementsystem.service.personnelService.RetiredService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 吴欣悦
* @description 针对表【retired】的数据库操作Service实现
* @createDate 2023-11-03 11:35:22
*/
@Service
public class RetiredServiceImpl implements RetiredService{
    @Autowired
    private RetiredMapper retiredMapper;

    @Override
    public int add(Retired retired) {
        return retiredMapper.insert(retired);
    }

    @Override
    public int delete(Retired retired) {
        return retiredMapper.delete(retired);
    }

    @Override
    public int update(Retired retired) {
        return retiredMapper.update(retired);
    }

    @Override
    public List<Retired> getAllRetired(Retired retired) {
        return retiredMapper.getAllRetired(retired);
    }

}




